//
//  GLTransitionAnimation.h
//  CustomTransition
//
//  Created by 朱志佳 on 2019/4/18.
//  Copyright © 2019 朱志佳. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/**
 GLTransitionAnimation 块
 
 @param contextTransition 将满足UIViewControllerContextTransitioning协议的对象传到管理内 在管理类对动画统一实现
 */
typedef void(^GLTransitionAnimationBlock)(id <UIViewControllerContextTransitioning> contextTransition);

@interface GLTransitionAnimation : NSObject<UIViewControllerAnimatedTransitioning>

@property (nonatomic,copy) GLTransitionAnimationBlock animationBlock;

/**
 初始化方法
 
 @param duration 转场时间
 @return 返回
 */
- (id)initWithDuration:(NSTimeInterval)duration;

@end

NS_ASSUME_NONNULL_END
